<script setup lang="ts">
/*setup()的语法糖*/
import {computed, ref} from "vue";
const count = ref(1)
const maxCount = computed(() => count.value * 2)
const handleAdd = () => {
  count.value++
}

</script>

<template>
  <button @click="handleAdd">{{ count }}-{{ maxCount }}</button>
</template>

